package com.mnsq.subject.controller;

import com.mnsq.common.bean.annotation.UserInfoRequired;
import com.mnsq.common.bean.entity.subject.UserRead;
import com.mnsq.common.controller.BaseController;
import com.mnsq.common.service.BaseService;
import com.mnsq.subject.bean.condition.ReadCondition;
import matrix.module.common.bean.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO finish do and undo methods
 *
 * @author 周俭
 */
@RestController
@RequestMapping("/api/read")
public class ReadController extends BaseController<UserRead, BaseService<UserRead, ReadCondition>, ReadCondition> {

    @PostMapping("/do")
    @UserInfoRequired(required = true)
    public Result col(String unique) {
        return null;
    }

    @PostMapping("/undo")
    @UserInfoRequired(required = true)
    public Result disCol(String unique) {
        return null;
    }
}
